package com.groupbuying.provider.dto.convert;


import com.groupbuying.provider.dto.StoreShopDetailDTO;
import com.groupbuying.provider.dto.StoreShopTempDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface StoreShopDetailConvert {

    StoreShopDetailConvert MAPPER = Mappers.getMapper(StoreShopDetailConvert.class);

    @Mapping(target = "storeUuid", source = "storeMainInfoDO.uuid")
    @Mapping(target = "storeName", source = "storeShopDO.shopname")
    @Mapping(target = "detailAddress", source = "storeShopDO.detailaddress")
    @Mapping(target = "consumption", source = "storeShopDO.consumption")
    @Mapping(target = "mobile", source = "storeMainInfoDO.mobile")
    StoreShopDetailDTO dTOToDTO(StoreShopTempDTO storeShopDO);
}
